<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=0">

		<title>地址管理</title>

		<link href="/Public/assets/css/admin.css" rel="stylesheet" type="text/css">
		<link href="/Public/assets/css/amazeui.css" rel="stylesheet" type="text/css">

		<link href="/Public/css/personal.css" rel="stylesheet" type="text/css">
		<link href="/Public/css/addstyle.css" rel="stylesheet" type="text/css">
		<script src="/Public/assets/js/jquery.min.js" type="text/javascript"></script>
		<script src="/Public/assets/js/amazeui.js"></script>
		<link rel="stylesheet" href="/Public/css/demo.css">
		<link rel="stylesheet" href="/Public/css/layout.css">
		<script src="/Public/home/user.js"></script>		

	</head>

	<body>
		<!--头 -->
		<header>
			<article>
				<div class="mt-logo">
					<!--顶部导航条 -->
					<script src="/Public/home/template-native.js"></script>
<script src="/Public/home/login.js"></script>
<!--顶部导航条 -->
			<div class="am-container header">
				<ul class="message-l">
					<div class="topMessage">
						<div class="menu-hd" id="menu-hide">
							<a href="/Home/Login/login" target="_top" class="h">亲，请登录</a>
							<a href="/Home/Login/register" target="_top">免费注册</a>
						</div>
						<div class="menu-hd" id="menu-show">
							
						</div>
					</div>
				</ul>
				<ul class="message-r">
					<div class="topMessage home">
						<div class="menu-hd"><a href="/home/index" target="_top" class="h">商城首页</a></div>
					</div>
					<div class="topMessage my-shangcheng">
						<div class="menu-hd MyShangcheng"><a href="/Home/User/index?id=<?php echo ($_SESSION["uid"]); ?>" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
					</div>
					<div class="topMessage mini-cart">
						<div class="menu-hd"><a id="mc-menu-hd" href="/home/shopcar/shopcart" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h"><?php echo ($count); ?></strong></a></div>
					</div>
					<div class="topMessage favorite">
						<div class="menu-hd"><a href="#" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
				</ul>
				</div>

				<!--悬浮搜索框-->

				<div class="nav white">
					<div class="logoBig">
						<li><img src="/Public/images/logobig.png" /></li>
					</div>

					<div class="search-bar pr">
						<a name="index_none_header_sysc" href="#"></a>
						<form>
							<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
							<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
						</form>
					</div>
				</div>

				<div class="clear"></div>
			</div>
			 
<!--登录与登出窗口-->
<script id="loginin-tql" type="text/html">

	<span>welcome!</span>
	<span><%=data.name%></span>
	<a href="javascript:LOGIN.userloginout();" target="_top">登出</a>
</script>
<script>
	
LOGIN.run();
</script>

				</div>
			</article>
		</header>

		<div class="nav-table">
			<div class="long-title"><span class="all-goods">全部分类</span></div>
			<div class="nav-cont">
				<ul>
					<li class="index"><a href="#">首页</a></li>
					<li class="qc"><a href="#">闪购</a></li>
					<li class="qc"><a href="#">限时抢</a></li>
					<li class="qc"><a href="#">团购</a></li>
					<li class="qc last"><a href="#">大包装</a></li>
				</ul>
				<div class="nav-extra">
					<i class="am-icon-user-secret am-icon-md nav-user"></i><b></b>我的福利
					<i class="am-icon-angle-right" style="padding-left: 10px;"></i>
				</div>
			</div>
		</div>
		<b class="line"></b>

		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-address">
						<!--标题 -->
						
						
						
						<!--例子-->
						<div class="am-modal am-modal-no-btn" id="doc-modal-1">

							<div class="add-dress" id="address-hide">

								<!--标题 -->
								<div class="am-cf am-padding">
									<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">编辑地址</strong> / <small>Edit&nbsp;address</small></div>
								</div>
								<hr/>

								<div class="am-u-md-12 am-u-lg-8" style="margin-top: 20px;">
									<form class="am-form am-form-horizontal" action="/Api" method="post">

										<div class="am-form-group">
											<label for="user-name" class="am-form-label">收货人</label>
											<div class="am-form-content">
												<input type="text" id="user-name" placeholder="收货人" value="<?php echo ($list["name"]); ?>">
											</div>
										</div>

										<div class="am-form-group">
											<label for="user-phone" class="am-form-label">手机号码</label>
											<div class="am-form-content">
												<input id="user-phone" placeholder="手机号必填" type="text" value="<?php echo ($list["telephone"]); ?>">
											</div>
										</div>
										<div class="am-form-group">
											<label for="user-address" class="am-form-label">所在地</label>
											<div class="am-form-content address">
												<fieldset id="city_china_val">
													<select id="user-province" class="province cxselect" data-value="<?php echo ($list["province"]); ?>" data-first-title="选择省" ></select>
													<select id="user-city" class="city cxselect"  data-value="<?php echo ($list["city"]); ?>" data-first-title="选择市" ></select>
													<select id="user-area" class="area cxselect"  data-value="<?php echo ($list["area"]); ?>" data-first-title="选择地区"  ></select>
												</fieldset>
											</div>
										</div>

										<div class="am-form-group">
											<label for="user-intro" class="am-form-label">详细地址</label>
											<div class="am-form-content">
												<textarea class="" rows="3" id="user-intro" placeholder="输入详细地址" ><?php echo ($list["intro"]); ?></textarea>
												<small>100字以内写出你的详细地址...</small>
											</div>
										</div>

										<div class="am-form-group">
											<div class="am-u-sm-9 am-u-sm-push-3">
												<a class="am-btn am-btn-danger" onclick="USER.useredit();">保存</a>
												<a href="/home/user/address?id=<?php echo ($data["id"]); ?>" class="am-close am-btn am-btn-danger" data-am-modal-close>取消</a>
											</div>
										</div>
									</form>
								</div>

							</div>
							<div class="add-dress" id="address-show">
								
							</div>

						</div>

					</div>
					
					<script type="text/javascript">
						//默认地址设置
						$(document).ready(function() {							
							
							
							var $ww = $(window).width();
							if($ww>640) {
								$("#doc-modal-1").removeClass("am-modal am-modal-no-btn")
							}
							
						})
					</script>

					<div class="clear"></div>

				</div>
				<!--底部-->
				<div class="footer ">
	<div class="footer-hd ">
		<p>
			<a href="#">恒望科技</a>
			<b>|</b>
			<a href="/home/index">商城首页</a>
			<b>|</b>
			<a href="# ">支付宝</a>
			<b>|</b>
			<a href="# ">物流</a>
		</p>
	</div>
	<div class="footer-bd ">
		<p>
			<a href="# ">关于恒望</a>
			<a href="# ">合作伙伴</a>
			<a href="# ">联系我们</a>
			<a href="# ">网站地图</a>
			<em>© 2015-2025 Hengwang.com 版权所有</em>
		</p>
	</div>
</div>


			</div>

			<aside class="menu">
				<ul>
	<li class="person active">
		<a href="/Home/User/index?id=<?php echo ($_SESSION["uid"]); ?>"><i class="am-icon-user"></i>个人中心</a>
	</li>
	<li class="person">
		<p><i class="am-icon-newspaper-o"></i>个人资料</p>
		<ul>
			<li> <a href="/Home/User/information?id=<?php echo ($_SESSION["uid"]); ?>" target="_top">个人信息</a></li>
			<li> <a href="safety.html">安全设置</a></li>
			<li> <a href="/Home/User/address?id=<?php echo ($_SESSION["uid"]); ?>">地址管理</a></li>
			<li> <a href="cardlist.html">快捷支付</a></li>
		</ul>
	</li>
	<li class="person">
		<p><i class="am-icon-balance-scale"></i>我的交易</p>
		<ul>
			<li><a href="order.html">订单管理</a></li>
			<li> <a href="change.html">退款售后</a></li>
			<li> <a href="comment.html">评价商品</a></li>
		</ul>
	</li>
	<li class="person">
		<p><i class="am-icon-dollar"></i>我的资产</p>
		<ul>
			<li> <a href="points.html">我的积分</a></li>
			<li> <a href="coupon.html">优惠券 </a></li>
			<li> <a href="bonus.html">红包</a></li>
			<li> <a href="walletlist.html">账户余额</a></li>
			<li> <a href="bill.html">账单明细</a></li>
		</ul>
	</li>

	<li class="person">
		<p><i class="am-icon-tags"></i>我的收藏</p>
		<ul>
			<li> <a href="collection.html">收藏</a></li>
			<li> <a href="foot.html">足迹</a></li>														
		</ul>
	</li>

	<li class="person">
		<p><i class="am-icon-qq"></i>在线客服</p>
		<ul>
			<li> <a href="consultation.html">商品咨询</a></li>
			<li> <a href="suggest.html">意见反馈</a></li>							
			
			<li> <a href="news.html">我的消息</a></li>
		</ul>
	</li>
</ul>


			</aside>
		</div>

	</body>

</html>

<script src="/Public/js/jquery-1.7.2.min.js"></script>
<script src="/Public/js/jquery.cxselect.min.js"></script>

<script>
//城市js
$.cxSelect.defaults.url = '/Public/js/cityData.min.json';

$('#city_china_val').cxSelect({
	selects: ['province', 'city', 'area'],
	nodata: 'none'
});

//获取URL的id
function getprogram(name) { 
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
	var r = window.location.search.substr(1).match(reg); 
	if (r != null) return unescape(r[2]); return null; 
} 
var id = getprogram('id');
</script>